import Layout from '@/views/layout/Layout'

const operateRouter = {
  path: '/operate',
  component: Layout,
  name: 'Operate',
  register: '/operate/information',
  meta: {
    title: '运营',
    icon: 'tree'
  },
  children: [{
    path: 'information',
    name: 'Information',
    component: () =>
      import('@/views/operate/information'),
    meta: {
      title: '资讯管理'
    }
  },
  {
    path: 'add-information',
    name: 'Add-information',
    component: () =>
      import('@/views/operate/components/information/create'),
    meta: {
      title: '添加资讯'
    },
    hidden: true
  },
  {
    path: 'add-article',
    name: 'Add-article',
    component: () =>
      import('@/views/mbterminal/create.vue'),
    meta: {
      title: '添加文章'
    },
    hidden: true
  },
  // {
  //   path: 'teamtopic',
  //   name: 'Teamtopic',
  //   component: () =>
  //     import('@/views/operate/teamtopic'),
  //   meta: {
  //     title: '小组话题管理'
  //   }
  // },
  {
    path: 'invitation',
    name: 'Invitation',
    component: () =>
      import('@/views/operate/invitation'),
    meta: {
      title: '邀请管理'
    }
  },
  {
    path: 'promcode',
    name: 'Promcode',
    component: () =>
      import('@/views/operate/promcode'),
    meta: {
      title: '优惠码管理'
    }
  },
  {
    path: 'create-prom-code',
    name: 'CreateCode',
    component: () =>
      import('@/views/operate/components/promcode/createcode'),
    meta: {
      title: '生成优惠码'
    },
    hidden: true
  },
  {
    path: 'learncard',
    name: 'Learncard',
    component: () =>
      import('@/views/operate/learncard'),
    meta: {
      title: '学习卡管理'
    }
  },
  // {
  //   path: 'discount',
  //   name: 'Discount',
  //   component: () =>
  //     import('@/views/operate/discount'),
  //   meta: {
  //     title: '打折活动管理'
  //   }
  // },
  // {
  //   path: 'discount-create',
  //   name: 'Discount-create',
  //   component: () =>
  //     import('@/views/operate/components/discount/create'),
  //   meta: {
  //     title: '创建打折活动'
  //   },
  //   hidden: true
  // },
  {
    path: 'webnotice',
    name: 'Webnotice',
    component: () =>
      import('@/views/operate/webnotice'),
    meta: {
      title: '网站公告管理'
    }
  },
  {
    path: 'allsitenotice',
    name: 'Allsitenotice',
    component: () =>
      import('@/views/operate/allsitenotice'),
    meta: {
      title: '全站站内通知'
    }
  },
  {
    path: 'edit',
    name: 'Edit',
    component: () =>
      import('@/views/operate/edit'),
    meta: {
      title: '编辑区管理'
    }
    // redirect: 'linkarea'
  },
  {
    path: 'zerotheme',
    name: 'Zerotheme',
    component: () =>
      import('@/views/operate/zerotheme'),
    meta: {
      title: '主题模板'
    }
  },
  {
    path: 'custompage',
    name: 'Custompage',
    component: () =>
      import('@/views/operate/custompage'),
    meta: {
      title: '自定义页面管理'
    }
  },
  // {
  //   path: 'operatedata',
  //   name: 'Operatedata',
  //   component: () =>
  //     import('@/views/operate/operatedata'),
  //   meta: {
  //     title: '数据统计'
  //   }
  // },
  {
    path: 'sensitiveword',
    name: 'Sensitiveword',
    component: () =>
      import('@/views/operate/sensitiveword'),
    meta: {
      title: '敏感词管理'
    }
  },
  {
    path: 'integral',
    name: 'Integral',
    component: () =>
      import('@/views/operate/integral'),
    meta: {
      title: '积分管理'
    }
  },
  {
    path: 'editorlunbo',
    name: 'Editorlunbo',
    component: () =>
      import('@/views/operate/components/edit/editorlunbo'),
    meta: {
      title: '编辑轮播图'
    },
    hidden: true
  },
  {
    path: 'middleadvertise',
    name: 'Middleadvertise',
    component: () =>
      import('@/views/operate/components/edit/middleadvertise'),
    meta: {
      title: '中部广告'
    },
    hidden: true
  },
  {
    path: 'middlestreamer',
    name: 'Middlestreamer',
    component: () =>
      import('@/views/operate/components/edit/middlestreamer'),
    meta: {
      title: '中部横幅'
    },
    hidden: true
  },
  {
    path: 'broadsidemarket',
    name: 'Broadsidemarket',
    component: () =>
      import('@/views/operate/components/edit/broadsidemarket'),
    meta: {
      title: '侧边营销模块'
    },
    hidden: true
  },
  {
    path: 'homebottom',
    name: 'Homebottom',
    component: () =>
      import('@/views/operate/components/edit/homebottom'),
    meta: {
      title: '首页底部社交'
    },
    hidden: true
  },
  {
    path: 'linkarea',
    name: 'Linkarea',
    component: () =>
      import('@/views/operate/components/edit/linkarea'),
    meta: {
      title: '首页底部链接区域'
    },
    hidden: true
  }
  ]
}
export default operateRouter
